package common.processor;

import android.content.Intent;
import android.os.Bundle;

public interface IProcessor {
	public static final int RESULT_OK = 0;
	public static final int RESULT_ERROR = 1;
	
	public static final String EXTRAS_ERROR = "extra_error";
	public static final String EXTRA_URL = "extra_url";
	public static final String EXTRA_EXECUTE_METHOD = "extra_method";
	
	public static final String METHOD_GET = "method_get";
	public static final String METHOD_DELETE = "method_delete";
	public static final String METHOD_POST = "method_post";

	Bundle executeGet(Intent intent) throws Exception;
	Bundle executeDelete(Intent intent) throws Exception;
	Bundle executePost(Intent intent) throws Exception;
}
